<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">评论管理</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('OrderComment/lists')}">
        用户昵称：
        <input type="text" name="nickname" style="width: 120px;" value="{$nickname}" placeholder="">
        订单编号: &nbsp;
        <input type="text" class="" name="order_sn" style="width: 120px;" value="{$formget.order_sn}" placeholder="">&nbsp;
        状态:
        <select name="status" style="width: 100px;">
            <option value="">全部</option>
            <option value="1" <if condition="$formget.status eq 1 ">selected </if> >待回复</option>
            <option value="2" <if condition="$formget.status eq 2 ">selected </if> >已回复</option>
        </select>
        <input type="submit" style="margin-left: 5px;" class="btn btn-primary" value="搜索"/>
    </form>


    <table style="margin-top: 10px;word-break:break-all;" class="table table-hover table-bordered table-list"
           id="menus-table">
        <thead>
        <tr>
            <th>序号</th>
            <th>ID</th>
            <th>商品名称</th>
            <th>订单编号</th>
            <th>用户昵称</th>
            <th>内容</th>
            <th>时间</th>
            <th>回复</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {$lists}
        </tbody>
    </table>
    <div class="pagination">{$Page}</div>
</div>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">回复</h3>
    </div>
    <form action="{:U('OrderComment/replay')}" method="post"
          class="form-horizontal js-ajax-form">
        <div class="modal-body">
            <table>
                <tbody>
                <tr>
                    <td>回复内容：</td>
                    <input type="hidden" name="id" class="id" value="">
                    <td><textarea name="content" id="" cols="10" rows="5"></textarea><span>&nbsp;*</span></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
            <button type="submit" class="btn btn-primary ">保存</button>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    $(".hidden").hide();
    $('.add_ext').click(function () {
        var id = $(this).attr("name");
        console.log(id);
        $(".id").val(id);
    });
</script>
</body>
</html>